package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户关系：：当用户单击关注时往这个表中插入一条记录
 *
 * @author 梁云亮
 */
@ApiModel(value = "Domain:Relation")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_relation")
public class Relation implements Serializable {
    private static final long serialVersionUID = -7243614802716851855L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 关注方
     */
    @TableField(value = "attention")
    @ApiModelProperty(value = "关注方")
    private Integer attention;

    /**
     * 被关注方
     */
    @TableField(value = "attentioned")
    @ApiModelProperty(value = "被关注方")
    private Integer attentioned;

    /**
     * 状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态")
    private Boolean status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}
